home *** CD-ROM | disk | FTP | other *** search
- Path: kikkin.zko.dec.com!carlson
- From: carlson@kikkin.zko.dec.com (Tom Carlson)
- Newsgroups: comp.lang.c
- Subject: Re: fopen and VMS help??
- Date: 9 Feb 1996 14:53:36 GMT
- Organization: Digital Equipment Corporation
- Distribution: world
- Message-ID: <4ffn5g$g4b@zk2nws.zko.dec.com>
- References: <4f6psn$t2v@news.global1.net>
- Reply-To: carlson@kikkin.zko.dec.com (Tom Carlson)
- NNTP-Posting-Host: kikkin.zko.dec.com
- X-Newsreader: mxrn 6.18-16
-
-
- In article <4f6psn$t2v@news.global1.net>, youngrc@global1.net writes:
- |>I'm writing variable length blocks to a tape in VMS one byte at a time (using C). How do I specify end of block. I am using fputc.
- |>Characters in the block could be \n (LF), but when I do a hex dump, those bytes don't appear! I assume I need to specify the correct
- |>parameters in the fopen(). Can someone help me with the parameters? Thank you, thank you, thank you!
-
- Your question is better asked in comp.os.vms.
-
- However, add "b" to the 2nd argument to fopen. If your fopen
- currently uses "w" as the second argument, change this
- to "wb". The "b" stands for binary and instructs the RTL not to
- attempt to interpret data values such as <LF>.
-
- Tom
- --
-
- Thomas Carlson, DEC C/ DEC C++ carlson@decc.enet.dec.com
- Digital Equipment Corporation, ZK2-3/N30
- 110 Spitbrook Rd,
- Nashua, NH 03062
-